<?php
# Create modal for each area
?>
<div id="modCreate" class="modal create area <?php echo $optn ?>">
	<div class="modal-head">
		<span>Create <?php echo ucfirst($area) ?></span> <?php
		if(in_array($optn, array('micro','img','doc','proj'))) { ?>
			<span class="normal bold">MANUAL <span class="dgray">&#9642;</span></span>
			<button type="button" class="json bold" data-modal="#modCreateJSON">JSON</button> <?php
		} ?>
		<button type="reset" class="modal-reject"></button>
	</div>
	
	<div class="modal-body"> <?php
		switch($optn) {
			# Microorganism
			case 'micro': ?>
				<form id="form-create" class="micro create" method="post" action="process.php?micro=make" enctype="multipart/form-data" novalidate="novalidate">
					<div class="div-peel"><b>Identity</b></div>
					<div class="div-case">
						<input name="name" class="reqd ital" type="text" placeholder="Scientific name" autofocus="autofocus"/><br/>
						<textarea name="author" placeholder="Authors" rows="1" data-tool="{'head':'Separated by <b>semi-colon (;)</b>','x':'r'}"></textarea><br/>
						<select name="pref" style="width:88px">
							<option value="Y">Preferred</option>
							<option value="0">Synonym</option>
						</select>
						<span class="hide">
							<input name="prefID[name]" type="text" placeholder="Preferred name (optional)" class="ital" data-guess="micro=guess" style="width:408px"/>
							<input name="prefID[id]" type="hidden" class="abled"/>
						</span>
					</div>
					
					<div class="div-peel peel off next open"><b>Taxonomy</b></div>
					<div class="div-case" style="width:512px;text-align:right"> <?php
						$rnk = array('kingdom', 'phylum', 'class', 'order', 'family', 'genus', 'species');
						
						for($i=0, $size=count($rnk); $i<$size; $i++) { ?> <div>
							<label><?php echo ucfirst($rnk[$i]) ?>:</label>
							<input name="taxon[<?php echo $rnk[$i] ?>][name]" class="taxon <?php if($i>4) { echo 'ital'; } ?> abled" type="text" data-guess="micro=guess&a=taxong&i=<?php echo $i ?>" style="width:422px"/>
							<!--<input name="taxon[<?php echo $rnk[$i] ?>][code]" class="code abled" type="text" placeholder="Code"/>-->
							<input name="taxon[<?php echo $rnk[$i] ?>][id]" type="hidden" class="abled"/> </div> <?php
						} ?>
					</div>
					
					<div class="div-peel peel on next"><b>Names</b></div>
					<div class="div-case none">
						<label>Synonyms</label>
						<div class="default">
							<input name="syno[name][]" type="text" placeholder="Synonym" class="syno abled target"/>
								<button class="append icon" type="button" data-area="micro" data-id="0"></button>
								<input name="syno[id][]" type="hidden" class="abled"/><br/>
							<a class="addmore peel on next vanish">Authors</a>
							<div class="none"><input name="syno[auth][]" type="text" placeholder="Authors" class="abled"/></div>
						</div>
						<div class="synos"></div><hr/>
						
						<label>Common names</label>
						<div class="default">
							<input name="comn[name][]" type="text" placeholder="Common name" class="comn abled target"/>
								<button class="append icon" type="button" data-area="micro" data-id="0">
								<input name="comn[id][]" type="hidden" class="abled"/></button><br/>
							<a class="addmore peel on next vanish">Language</a>
							<div class="none"><input name="comn[lang][]" type="text" placeholder="Language" class="abled"/></div>
						</div>
						<div class="comns"></div>
						<!--<label>Synonyms:</label><br/><textarea name="syno" type="text" class="tipped abled" rows="1" data-tool="{'head':'Separated by <b>semi-colon (;)</b>.','x':'r'}"/></textarea><br/>
						<label>Common names:</label><br/><textarea name="comn" type="text" class="tipped abled" rows="1" data-tool="{'head':'Separated by <b>semi-colon (;)</b>.','x':'r'}"/></textarea>-->
					</div>
					
					<div class="div-peel peel on next"><b>Hosts</b></div>
					<div class="div-case none">
						<div class="default">
							<div>
								<input name="host[name][]" class="host abled target" type="text" placeholder="Scientific name" data-guess="micro=guess&a=host"/>
								<!--<input name="host[code][]" class="code abled" type="text" placeholder="Code"/>-->
									<button class="append icon" type="button" data-area="micro" data-id="0">
									<input name="host[id][]" type="hidden" class="abled"/></button>
							</div>
							<a class="addmore peel on next vanish">Authors, Common names</a>
							<div class="none">
								<input name="host[auth][]" class="abled" placeholder="Authors" type="text" data-tool="{'head':'Separated by <b>semi-colon (;)</b>','x':'r'}"/><br/>
								<input name="host[comn][]" class="abled" placeholder="Common names" type="text" data-tool="{'head':'Separated by <b>semi-colon (;)</b>','x':'r'}"/>
							</div>
						</div>
						<div id="hosts"></div>
					</div>
					
					<div class="div-peel peel on next"><b>Notes</b></div>
					<div class="div-case none">
						<textarea name="notes" rows="5" class="abled"></textarea>
					</div>
					
					<div class="div-peel peel on next"><b>References</b></div>
					<div class="div-case none">
						<textarea name="ref" rows="3" class="abled"></textarea>
					</div>
					
					<div class="div-peel peel on next"><b>Files</b></div>
					<div class="div-case none">
						<input name="file[]" type="file" multiple="multiple" class="abled" accept="image/jpeg,image/gif,application/pdf"/>
					</div>
					
					<div class="div-peel peel on next"><b>Settings</b> <span class="setting help"></span></div>
					<div class="div-case none">
						<label>Category:</label> <select name="categ" class="safe abled">
							<option value="ADV">Advanced</option>
							<option value="BSC" selected="selected">Basic</option></select> &nbsp; &nbsp; &nbsp;
						
						<label>Visibility:</label> <select name="visib" class="safe abled">
							<option value="PRV">Private</option>
							<option value="PUB" selected="selected">Public</option></select><br/>
						
						<label class="coed">Coeditors:</label>
						<div class="none">
							<div class="default">
								<input name="coed[val][]" type="text" class="coed" placeholder="Account name or Email" data-guess="acct=guess"/>
								<button class="append icon" type="button" data-area="acct" data-id="0"></button>
								<input type="hidden" name="coed[id][]" class="abled"/>
							</div>
							<div class="coeds"></div>
						</div>
						<button type="button" class="addmore peel on prev" data-on="Add" data-off="Cancel">Add</button>
					</div>
				</form> <?php
			break;
			
			# Image
			case 'img': ?>
				<form id="form-create" class="img create" method="post" action="process.php?img=make" enctype="multipart/form-data" novalidate="novalidate">
					<div class="div-peel"><b>Image file</b></div>
					<div class="div-case">
						<input name="img" id="img" type="file" autofocus="autofocus" accept="image/jpeg,image/gif" class="reqd img tipped"/>
					</div>
					
					<div class="div-peel"><b>Title</b></div>
					<div class="div-case">
						<textarea name="title" rows="1" class="abled"></textarea>
					</div>
					
					<div class="div-peel"><b>Notes</b></div>
					<div class="div-case">
						<textarea name="notes" id="notes" rows="5" class="abled"></textarea><br/>
					</div>
					
					<div class="div-peel peel on next"><b>References</b></div>
					<div class="div-case none">
						<textarea name="ref" rows="3" class="abled"></textarea>
					</div>
					
					<div class="div-peel"><b>Projects</b></div>
					<div class="div-case">
						<div class="default">
							<input name="proj[val][]" type="text" class="proj" placeholder="Project title" data-guess="proj=guess"/>
							<button class="append icon" type="button" data-id="0" data-area="proj"></button>
							<input type="hidden" name="proj[id][]" class="abled"/>
						</div>
						<div id="projs"></div>
					</div>
					
					<div class="div-peel"><b>Microorganisms</b></div>
					<div class="div-case">
						<div class="default">
							<input name="micro[val][]" type="text" class="micro" placeholder="Scientific name" data-guess="micro=guess"/>
							<button class="append icon" type="button" data-id="0" data-area="micro"></button>
							<input type="hidden" name="micro[id][]" class="abled"/>
						</div>
						<div id="micros"></div>
					</div>
					
					<div class="div-peel peel on next"><b>Settings</b><span class="setting help"></span></div>
					<div class="div-case none">
						<label>Category:</label> <select name="categ" class="safe abled">
							<option value="ADV" selected="selected">Advanced</option>
							<option value="BSC">Basic</option></select> &nbsp; &nbsp; &nbsp;
						
						<label>Visibility:</label> <select name="visib" class="safe abled">
							<option value="PRV">Private</option>
							<option value="PUB" selected="selected">Public</option></select> <br/>
						
						<label class="coed">Coeditors:</label>
						<div class="none">
							<div class="default">
								<input name="coed[val][]" type="text" class="coed" placeholder="Account name or Email" data-guess="acct=guess"/>
								<button class="append icon" type="button" data-area="coed" data-id="0" data-area="acct" data-id="0"></button>
								<input type="hidden" name="coed[id][]" class="abled"/>
							</div>
							<div class="coeds"></div>
						</div>
						<button type="button" class="addmore peel on prev" data-on="Add" data-off="Cancel">Add</button>
					</div>
				</form> <?php
			break;
			
			# Document
			case 'doc': ?>
				<form id="form-create" class="doc create" method="post" action="process.php?doc=make" enctype="multipart/form-data" novalidate="novalidate">
					<div class="div-peel"><b>Document file</b></div>
					<div class="div-case">
						<input name="doc" id="doc" type="file" autofocus="autofocus" accept="application/pdf" class="reqd doc tipped"/>
					</div>
					
					<div class="div-peel"><b>Title</b></div>
					<div class="div-case">
						<textarea name="title" rows="1" class="abled"></textarea>
					</div>
					
					<div class="div-peel"><b>Abstract</b></div>
					<div class="div-case">
						<textarea name="abstr" rows="5" class="abled"></textarea>
					</div>
					
					<div class="div-peel"><b>References</b></div>
					<div class="div-case">
						<textarea name="ref" rows="3" class="abled"></textarea>
					</div>
					
					<div class="div-peel"><b>Projects</b></div>
					<div class="div-case">
						<div class="default">
							<input name="proj[val][]" type="text" class="proj" placeholder="Project title" data-guess="proj=guess"/>
							<button class="append icon" type="button" data-id="0" data-area="proj"></button>
							<input type="hidden" name="proj[id][]" class="abled"/>
						</div>
						<div id="projs"></div>
					</div>
					
					<div class="div-peel"><b>Microorganisms</b></div>
					<div class="div-case">
						<div class="default">
							<input name="micro[val][]" type="text" class="micro" placeholder="Scientific name" data-guess="micro=guess"/>
							<button class="append icon" type="button" data-id="0" data-area="micro" data-id="0"></button>
							<input name="micro[id][]" type="hidden" class="abled"/><br/>
						</div>
						<div id="micros"></div>
					</div>
					
					<div class="div-peel peel on next"><b>Settings</b><span class="setting help"></span></div>
					<div class="div-case none">
						<label>Category:</label> <select name="categ" class="safe abled">
							<option value="ADV" selected="selected">Advanced</option>
							<option value="BSC">Basic</option></select> &nbsp; &nbsp; &nbsp;
						
						<label>Visibility:</label> <select name="visib" class="safe abled">
							<option value="PRV">Private</option>
							<option value="PUB" selected="selected">Public</option></select> <br/>
						
						<label class="coed">Coeditors:</label>
						<div class="none">
							<div class="default">
								<input name="coed[val][]" type="text" class="coed" placeholder="Account name or Email" data-guess="acct=guess"/>
								<button class="append icon" type="button" data-area="coed" data-id="0" data-area="acct" data-id="0"></button>
								<input type="hidden" name="coed[id][]" class="abled"/>
							</div>
							<div class="coeds"></div>
						</div>
						<button type="button" class="addmore peel on prev" data-on="Add" data-off="Cancel">Add</button>
					</div>
				</form> <?php
			break;
			
			# Location
			case "loc": ?>
				<form id="form-create" class="loc create" method="post" action="process.php?loc=make" enctype="multipart/form-data">
					<div id="loc-create" class="world"><label>Google Maps not available</label></div>
					
					<div class="right" style="padding-top:10px;max-height:644px;overflow-y:scroll">
						<div class="div-peel"><b>Name</b></div>
						<div class="div-case">
							<textarea name="name" id="name" class="loc gmap create reqd" rows="1" autofocus="autofocus" placeholder="Search or enter a place" data-guess="loc=guess"></textarea>
							<input name="gname" type="hidden" class="abled"/>
						</div>
						
						<div class="div-peel"><b>Coordinates</b></div>
						<div class="div-case">
							<label>Latitude:</label> <input name="lat" type="text" class="reqd" style="width:172px"/> &nbsp; &nbsp;
							<label>Longitude:</label> <input name="lng" type="text" class="reqd" style="width:172px"/>
							
							<input name="glat" type="hidden" class="abled"/>
							<input name="glng" type="hidden" class="abled"/>
						</div>
						
						<div class="div-peel"><b>Notes</b></div>
						<div class="div-case">
							<textarea name="notes" rows="5" class="abled"></textarea>
						</div>
						
						<div class="div-peel peel on next"><b>References</b></div>
						<div class="div-case none">
							<textarea name="ref" rows="3" class="abled"></textarea>
						</div>
						
						<div class="div-peel"><b>Microorganisms</b></div>
						<div class="div-case">
							<div class="default">
								<input name="micro[val][]" type="text" class="micro" placeholder="Scientific name" data-guess="micro=guess"/>
								<button class="append icon" type="button" data-id="0" data-area="micro" data-id="0"></button>
								<input name="micro[id][]" type="hidden" class="abled"/><br/>
							</div>
							<div id="micros"></div>
						</div>
						
						<div class="div-peel peel on next"><b>Files</b></div>
						<div class="div-case none">
							<input name="file[]" type="file" multiple="multiple" class="abled" accept="image/jpeg,image/gif,application/pdf"/>
						</div>
						
						<div class="div-peel peel on next"><b>Settings</b><span class="setting help"></span></div>
						<div class="div-case none">
							<label>Category:</label> <select name="categ" class="safe abled">
								<option value="ADV" selected="selected">Advanced</option>
								<option value="BSC">Basic</option></select> &nbsp; &nbsp; &nbsp;
							
							<label>Visibility:</label> <select name="visib" class="safe abled">
								<option value="PRV">Private</option>
								<option value="PUB" selected="selected">Public</option></select> <br/>
							
							<label class="coed">Coeditors:</label>
							<div class="none">
								<div class="default">
									<input name="coed[val][]" type="text" class="coed" placeholder="Account name or Email" data-guess="acct=guess"/>
									<button class="append icon" type="button" data-area="coed" data-id="0" data-area="acct" data-id="0"></button>
									<input type="hidden" name="coed[id][]" class="abled"/><br/>
								</div>
								<div class="coeds"></div>
							</div>
							<button type="button" class="addmore peel on prev" data-on="Add" data-off="Cancel">Add</button>
						</div>
					</div>
				</form> <?php
			break;
			
			# Resource
			case "rsrc": ?>
				<form id="form-create" class="rsrc create" method="post" action="process.php?rsrc=make" enctype="multipart/form-data" novalidate="novalidate">
					<div class="div-peel"><b>Title</b></div>
					<div class="div-case">
						<textarea name="title" class="reqd" rows="1" autofocus="autofocus"></textarea>
					</div>
					
					<div class="div-peel"><b>Notes</b></div>
					<div class="div-case">
						<textarea name="notes" class="reqd" rows="5"></textarea><br/>
					</div>
					
					<div class="div-peel peel on next"><b>References</b></div>
					<div class="div-case none">
						<textarea name="ref" rows="3" class="abled"></textarea>
					</div>
					
					<div class="div-peel"><b>Links</b></div>
					<div class="div-case">
						<div class="default">
							<input name="link[]" type="text" class="link" value="http://"/>
							<button class="append icon" type="button"></button>
						</div>
						<span class="links"></span>
					</div>
					
					<div class="div-peel"><b>Files</b></div>
					<div class="div-case">
						<input name="file[]" type="file" multiple="multiple" class="abled" accept="image/jpeg,image/gif,application/pdf"/>
					</div>
					
					<div class="div-peel peel on next"><b>Settings</b><span class="setting help"></span></div>
					<div class="div-case none">
						<label>Category:</label> <select name="categ" class="safe abled">
							<option value="ADV" selected="selected">Advanced</option>
							<option value="BSC">Basic</option></select> &nbsp; &nbsp; &nbsp;
						
						<label>Visibility:</label> <select name="visib" class="safe abled">
							<option value="PRV">Private</option>
							<option value="PUB" selected="selected">Public</option></select> <br/>
						
						<label class="coed">Coeditors:</label>
						<div class="none"><br/>
							<div class="default">
								<input name="coed[val][]" type="text" class="coed" placeholder="Account name or Email" data-guess="acct=guess"/>
								<button class="append icon" type="button" data-area="coed" data-id="0" data-area="acct" data-id="0"></button>
								<input type="hidden" name="coed[id][]" class="abled"/>
							</div>
							<div class="coeds"></div>
						</div>
						<button type="button" class="addmore peel on prev" data-on="Add" data-off="Cancel">Add</button>
					</div>
				</form> <?php
			break;
			
			# Project
			case 'proj': ?>
				<form id="form-create" class="proj create" method="post" action="process.php?proj=make" enctype="multipart/form-data" novalidate="novalidate">
					<div class="div-peel"><b>Title</b></div>
					<div class="div-case">
						<textarea name="title" autofocus="autofocus" class="reqd" rows="1"></textarea>
					</div>
					
					<div class="div-peel"><b>Abstract</b></div>
					<div class="div-case">
						<textarea name="abstr" rows="5" class="reqd"></textarea>
					</div>
					
					<div class="div-peel"><b>Authors</b></div>
					<div class="div-case">
						<div class="default">
							<input name="edtr[val][]" type="text" class="edtr" placeholder="Last name, First name, MI" data-guess="acct=guess&edtr=1"/>
							<button class="append icon" type="button" data-area="edtr" data-id="0"></button>
							<input name="edtr[id][]" type="hidden" class="abled"/>
						</div>
						<div id="edtrs"></div>
					</div>
					
					<div class="div-peel"><b>Document</b></div>
					<div class="div-case">
						<input name="pdoc" class="abled "type="file" accept="application/pdf" title="Primary document of research project"/>
					</div>
					
					<div class="div-peel"><b>Image</b></div>
					<div class="div-case">
						<input name="pimg" class="abled "type="file" accept="image/jpeg,image/gif" title="Primary image of research project"/>
					</div>
					
					<div class="div-peel"><b>Microorganisms</b></div>
					<div class="div-case">
						<div class="default">
							<input name="micro[val][]" type="text" class="micro" placeholder="Scientific name" data-guess="micro=guess"/>
							<button class="append icon" type="button" data-area="micro" data-id="0"></button>
							<input name="micro[id][]" type="hidden" class="abled"/>
						</div>
						<div id="micros"></div>
					</div>
					
					<div class="div-peel peel on next"><b>Sections</b></div>
					<div class="div-case none">
						<div class="sec default">
							<input name="sec[val][0][head]" type="text" placeholder="Header" class="sec"/>
							<button type="button" class="append-sec icon" data-area="sec"></button><br/>
							<div class="none">
								<textarea name="sec[val][0][cont]" placeholder="Content" class="sec" rows="5"/></textarea><br/>
								<input name="sec[0][]" type="file" multiple="multiple" accept="image/jpeg,image/gif,application/pdf"/>
							</div>
							<a class="addmore peel on prev" data-on="Add contents" data-off="Remove contents">Add contents</a>
							<input name="sec[id][0]" type="hidden" class="abled"/>
						</div>
						<div id="secs"></div>
					</div>
					
					<div class="div-peel peel on next"><b>Source</b></div>
					<div class="div-case none">
						<div class="default">
							<input name="asrce[journ][]" type="text" class="srce" placeholder="Journal title"/>
								<button class="append-srce icon" type="button" data-area="srce"></button><br/>
							<div class="none">
								<input name="asrce[year][]" type="text" class="code number" placeholder="Year"/>
								<input name="asrce[vol][]" type="text" class="code number abled" placeholder="Volume"/>
								<input name="asrce[num][]" type="text" class="code number abled" placeholder="Number"/>
								<input name="asrce[page][]" type="text" class="code number abled" placeholder="Page(s)"/>
							</div>
							<a class="addmore peel on prev" data-on="Add details" data-off="Remove details">Add details</a>
						</div>
						<div id="srces"></div>
					</div>
					
					<div class="div-peel peel on next"><b>Notes</b></div>
					<div class="div-case none">
						<textarea name="notes" rows="5" class="abled"></textarea>
					</div>
					
					<div class="div-peel peel on next"><b>References</b></div>
					<div class="div-case none">
						<textarea name="ref" rows="3" class="abled"></textarea>
					</div>
					
					<div class="div-peel peel on next"><b>Files</b></div>
					<div class="div-case none">
						<input name="file[]" type="file" multiple="multiple" class="abled" accept="image/jpeg,image/gif,application/pdf"/>
					</div>
					
					<div class="div-peel peel on next"><b>Settings</b><span class="setting help"></span></div>
					<div class="div-case none">
						<label>Category:</label> <select name="categ" class="safe abled">
							<option value="ADV" selected="selected">Advanced</option>
							<option value="BSC">Basic</option></select> &nbsp; &nbsp; &nbsp;
						
						<label>Visibility:</label> <select name="visib" class="safe abled">
							<option value="PRV">Private</option>
							<option value="PUB" selected="selected">Public</option></select> <br/>
						
						<label class="coed">Coeditors:</label>
						<div class="none">
							<div class="default">
								<input name="coed[val][]" type="text" class="coed" placeholder="Account name or Email" data-guess="acct=guess"/>
								<button class="append icon" type="button" data-area="coed" data-id="0"></button>
								<input type="hidden" name="coed[id][]" class="abled"/>
							</div>
							<div class="coeds"></div>
						</div>
						<button type="button" class="addmore peel on prev" data-on="Add" data-off="Cancel">Add</button>
					</div>
				</form> <?php
			break;
			
			# Account
			case 'acct': ?>
				<form id="form-create" class="create" method="post" action="process.php?acct=make">
					<label data-for="type">Type:</label>
					<select id="type" name="type" class="reqd" style="width: 312px">
						<option value="PRIME">Prime</option>
						<option value="ADMIN">Admin</option>
						<option value="EDITOR">Editor</option>
						<option value="CLIENT" selected="selected">Client</option>
					</select><br/>
					
					<label data-for="email">Email:</label>
						<input id="email" name="email" type="email" autofocus="autofocus" class="reqd" style="width:300px"/><br/>
					<label data-for="pword">Password:</label>
						<input id="pword" name="pword" type="password" class="reqd tipped" style="width:300px"/><br/>
					<label data-for="pwordRep">Repeat password:</label>
						<input id="pwordRep" name="pwordRep" type="password" class="reqd" style="width:300px"/><br/>
					<label data-for="lname">Last name:</label>
						<input id="lname" type="text" name="lname" class="reqd" style="width:300px"/><br/>
					<label data-for="fname">First name:</label>
						<input id="fname" type="text" name="fname" class="reqd" style="width:300px"/><br/>
					<label data-for="mname">Middle name:</label>
						<input id="mname" type="text" name="mname" class="reqd" style="width:300px"/><br/>
					<label data-for="addrs">Address:</label>
						<input id="addrs" type="text" name="addrs" class="reqd" style="width:300px"/><br/>
				</form> <?php
			break;
		} ?>
	</div>
	
	<div class="modal-dial create">
		<span class="left">
			<button type="reset" class="clear" form="form-create">Clear</button>
		</span>
		
		<span>
			<button type="reset" form="form-create" class="modal-reject cancel">Cancel</button>
			<button type="submit" form="form-create">Create</button>
		</span>
	</div>
</div>

<div id="modCreateJSON" class="modal create area <?php echo $optn ?>">
	<div class="modal-head">
		<span>Create <?php echo ucfirst($area) ?></span>
		<span class="normal bold">JSON <span class="dgray">&#9642;</span></span>
		<button type="button" class="json bold" data-modal="#modCreate">MANUAL</button>
		<button type="reset" class="modal-reject"></button>
	</div>
	
	<div class="modal-body">
		<form id="form-create-json" class="<?php echo $optn ?> create" method="post" action="process.php?<?php echo $optn ?>=make" enctype="multipart/form-data" novalidate="novalidate"> <?php
			if($optn=='proj') { ?>
				<div class="div-peel"><b>JSON inputs</b> <span>Projects only</span></div>
				<div class="div-case">
					<input name="input[]" type="file" multiple="multiple" class="abled" accept="application/json" data-tool="{'head':'<b>.json</b> inputs','body':'JSON inputs of the projects to be created','stay':'true','behav':'More'}" title="Select JSON inputs"/>
				</div>
				<div class="div-peel"><b>ZIP archives</b> <span>Projects with images and documents</span></div>
				<div class="div-case">
					<input name="input[multi][]" type="file" multiple="multiple" class="abled" accept="application/zip" data-tool="{'head':'<b>.zip</b> archives','body':'Zip archives of the projects with images and documents','stay':'true','behav':'More'}" title="Select zipped archives"/>
				</div> <?php
			}
			else { ?>
				<label>Select JSON files of items to be created. <!--<i class="help right" data-tool="{'head':'<a data-modal=\'#modHelp\'>Help</a>','stay':1}"></i></label>--><br/>
				<input name="input[]" type="file" multiple="multiple" accept="application/json" class="abled" data-tool="{'head':'<b>.json</b> inputs','body':'JSON (Javascript Object Notation) contains details about an item to be created.','stay':'true','behav':'More'}" title="Select JSON inputs"/> <?php
			} ?>
		</form>
	</div>
	
	<div class="modal-dial">
		<button type="reset" form="form-create-json" class="modal-reject cancel">Cancel</button>
		<button type="submit" form="form-create-json">Create</button>
	</div>
</div>
